package cn.ift8.spring.normal.untils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by IFT8
 * on 2015/8/16.
 */
public class SpringUntils {
    private static ApplicationContext applicationContext;
    static {
        applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
    }
    public static Object getBean(String bean){
        return applicationContext.getBean(bean);
    }
}
